import Http from "@/http"

export function pageApi(params:any) {
    return Http.get('iotSim/page', params)
}

export function saveApi(params:any) {
    return params.id ? Http.put('iotSim/edit/' + params.id, params) : Http.post('iotSim/add', params)
}

export function saveBatchApi(params:any[]) {
    return Http.post('iotSim/add/batch', {data : params})
}


export function deleteApi(id) {
    return Http.delete('iotSim/delete/' + id)
}

export function querySimCardApi(querys:any) {
    return Http.get('iotSim/query', querys)
}